package com.woniu.guoguo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.guoguo.controller.component.OrderInfo;
import com.woniu.guoguo.model.Order;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Richie
 * @since 2020-11-02
 */
public interface IOrderService extends IService<Order> {

    Order findOrderByUserIdAndMenuId(int menuId, int userId);

    void updateStateTo3ById(Integer orderId);

    IPage<OrderInfo> find(Page<OrderInfo> page , String description, int userId);

    void changeOrder(Order order);

    void changeShop(Order order);

    void changUser(Order order);

    void addAOrderBuySys(Order order);

    Order findOrderByOutTradeNo(String otn);

}
